function arata_pd() {
	var obiect = "pull_down_menu_1";
	obj = document.getElementById(obiect);
    if (obj.style.top == "")
	poz_act = 0;
	else
	poz_act = parseInt(obj.style.top);
	if (parseInt(obj.style.top) == -35)
	 mod = "on";
	else
	 mod = "off";
	if (mod == "on" && poz_act == -35) {
		arata_pd_on(-35);
	} else 
	if (mod == "off" && poz_act == 0) {
		arata_pd_off(0);
	}
}

function arata_pd_on(i) {
	var obiect = "pull_down_menu_1";
	obj = document.getElementById(obiect);
	if (i<=0)
	{
	 obj.style.top = i + "px";
	 i=i+5;
	 var arata_on_t = setTimeout("arata_pd_on("+i+")", 10);
	}
}

function arata_pd_off(i) {
	var obiect = "pull_down_menu_1";
	obj = document.getElementById(obiect);
	if (i>=-35)
	{
	 obj.style.top = i + "px";
	 i=i-5;
	 var arata_off_t = setTimeout("arata_pd_off("+i+")", 10);
	}
}

function arata_pd2() {
	var obiect = "pull_down_menu_2";
	obj = document.getElementById(obiect);
    if (obj.style.left == "")
	poz_act = 0;
	else
	poz_act = parseInt(obj.style.left);
	if (parseInt(obj.style.left) == -200)
	 mod = "on";
	else
	 mod = "off";
	if (mod == "on" && poz_act == -200) {
		arata_pd_on2(-200);
	} else 
	if (mod == "off" && poz_act == 0) {
		arata_pd_off2(0);
	}
}

function arata_pd_on2(i) {
	var obiect = "pull_down_menu_2";
	obj = document.getElementById(obiect);
	if (i<=0)
	{
	 obj.style.left = i + "px";
	 i=i+20;
	 var arata_on_t = setTimeout("arata_pd_on2("+i+")", 10);
	}
}

function arata_pd_off2(i) {
	var obiect = "pull_down_menu_2";
	obj = document.getElementById(obiect);
	if (i>=-200)
	{
	 obj.style.left = i + "px";
	 i=i-20;
	 var arata_off_t = setTimeout("arata_pd_off2("+i+")", 10);
	}
}

function defilare_titlu(text) {
    text2 = text.substring(i, text.length) + text;
	document.title = text2;
	if (i<text.length) {
		i++;
	}
	else {
		i = 0;
	}
	setTimeout("defilare_titlu('"+text2+"')", 50);
}